import request from '@/utils/request';

export async function add(data) {
  return await request('/7health/category/add', {
    method: 'POST',
    data,
  });
}
export async function getCats(data) {
  return await request('/7health/category/getCats');
}

export async function goodsAdd(data) {
  return await request('/7health/goods/add', {
    method: 'POST',
    data,
  });
}

export async function getGoodsList(params) {
  return await request('/7health/goods/list', {
    method: 'GET',
    params,
  });
}

export async function updateGoods(data) {
  return await request('/7health/goods/update', {
    method: 'POST',
    data,
  });
}

export async function updateCatInfo(data) {
  return await request('/7health/category/updateCatInfo', {
    method: 'POST',
    data,
  });
}

